project(Reminder)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

# 文件归类
file(GLOB SRC_FILES *.h *.cpp)
file(GLOB QT_QRC_FILES *.qrc)

source_group(qrc FILES ${QT_QRC_FILES})

find_package(Qt5 COMPONENTS Widgets Gui REQUIRED)

include_directories(SYSTEM ${OpenCASCADE_INCLUDE_DIR})
include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR})

add_executable(${PROJECT_NAME} WIN32 ${SRC_FILES} ${QT_QRC_FILES})

target_link_libraries(${PROJECT_NAME} Qt5::Widgets Qt5::Gui)

# 安装
INSTALL(TARGETS ${PROJECT_NAME})

